package com.itheima.shop;

import org.springframework.stereotype.Service;

/**
 * 策略三、会员打七折
 */
@Service
public class GoldMemberDiscount implements DiscountStrategy{
    @Override
    public Double calculate(Double price) {
        return price * 0.7;
    }
}
